/**
 * AccountShopService.java
 * Copyright(C) 1949++ 中华人民共和国
 * 深圳市盛开互联网金融顾问有限公司.
 * All rights reserved.
 * E-mail:server@skjr.net
 * SKDate:2017-11-16 17:28:58
 */
package com.huamao.zh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huamao.zh.base.PageWrapper;
import com.huamao.zh.mapper.AccountShopMapper;
import com.huamao.zh.model.AccountShop;
import com.huamao.zh.service.AccountShopService;

@Service
@Transactional
public class AccountShopServiceImpl implements AccountShopService {

	@Autowired
	private AccountShopMapper accountShopMapper;

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AccountShop add(AccountShop accountShop) throws Exception {
		accountShopMapper.add(accountShop);
		return accountShop;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AccountShop addSelective(AccountShop accountShop) throws Exception {
		accountShopMapper.addSelective(accountShop);
		return accountShop;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int delete(Map<String, Object> map) {
		return accountShopMapper.delete(map);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int update(AccountShop accountShop) throws Exception {
		return accountShopMapper.update(accountShop);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int updateSelective(AccountShop accountShop) throws Exception {
		return accountShopMapper.updateSelective(accountShop);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AccountShop get(Integer accountId) {
		AccountShop accountShop = accountShopMapper.get(accountId);
		return accountShop;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public AccountShop getByShopId(Integer shopId) {
		AccountShop accountShop = accountShopMapper.getByShopId(shopId);
		return accountShop;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public PageWrapper<AccountShop> search(PageWrapper<AccountShop> pageWrapper) {
		List<AccountShop> accountShops = accountShopMapper.search(pageWrapper);
		pageWrapper.setList(accountShops);
		return pageWrapper;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public List<AccountShop> queryList(Map<String, Object> map) {
		return accountShopMapper.queryList(map);
	}

	@Override
	public int updateFreezeKiyuan(AccountShop accountShop) {
		return accountShopMapper.updateFreezeKiyuan(accountShop);
	}

	@Override
	public int updateKaiyuanTurnover(AccountShop accountShop) {
		return accountShopMapper.updateKaiyuanTurnover(accountShop);
	}

	@Override
	public int updateExchangeKaiyuan(AccountShop accountShop) {
		return accountShopMapper.updateExchangeKaiyuan(accountShop);
	}

	@Override
	public int updateOnlineTurnover(AccountShop accountShop) {
		return accountShopMapper.updateOnlineTurnover(accountShop);
	}

}